{js:artTemplate}
{js:areaSelect}
<div class="breadcrumbs" id="breadcrumbs">
    <ul class="breadcrumb">
        <li>
            <i class="home-icon fa fa-home"></i>
            <a href="#">问卷</a>
        </li>
        <li>
            <a href="#">问卷管理</a>
        </li>
        <li class="active">添加问卷</li>
    </ul>
</div>

<div class="content">
    <form action="{url:/vote/vote_add}" method="post" name="vote_add">
        <table class="table form-table">
            <colgroup>
                <col width="150px"/>
                <col/>
            </colgroup>
            <tr>
                <th>问卷标题：</th>
                <td>
                    <input type="text" class='form-control' name="vote_title" required>
                    <p class="help-block">* 请输入问卷标题，不超过 255 个字符。</p>
                </td>
            </tr>
            <tr>
                <th>日期范围：</th>
                <td>
                    <div style="display: flex; gap: 10px;">
                        <input type="date" class='form-control' name="start_date" required>
                        <p class="help-block" style="width: 100%;">* 请选择问卷的起始日期。</p>
                        <input type="date" class='form-control' name="end_date" required>
                        <p class="help-block" style="width: 100%;">* 截止日期需晚于起始日期。</p>
                    </div>
                </td>
            </tr>
            <tr>
                <th>总页数：</th>
                <td>
                    <input type="number" class='form-control' name="total_pages" required>
                    <p class="help-block">* 请输入问卷的总页数，必须为正整数。</p>
                </td>
            </tr>
            <tr>
                <th>问卷状态：</th>
                <td>
                    <select class="form-control" name="vote_status" style="width: 150px">
                        <option value="0" selected>未开始</option>
                        <option value="1">进行中</option>
                        <option value="2">已结束</option>
                    </select>
                    <p class="help-block">* 选择问卷的状态。</p>
                </td>
            </tr>
            <tr>
                <th>问卷说明：</th>
                <td>
                    <textarea class="form-control" name="vote_description" rows="5"></textarea>
                    <p class="help-block">请输入问卷的详细说明（可选）。</p>
                </td>
            </tr>
            <tr>
                <td></td>
                <td>
                    <button class='btn btn-primary' type="submit">保存</button>
                </td>
            </tr>
        </table>
    </form>
</div>